package com.gxa.weixing.core.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * @author 雅风
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_manager")
@ApiModel(value = "管理人员")
public class Manager {

  /**
   * 管理员编号
   */
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "manager_id")
  private Long managerId;

  /**
   * 管理员姓名
   */
  @Column(name = "manager_name")
  private String managerName;

  /**
   * 管理员密码
   */
  @Column(name = "manager_pwd")
  @JsonIgnore
  private String managerPwd;

  /**
   * 管理员手机号
   */
  @Column(name = "manager_phone")
  private String managerPhone;

  /**
   * 修改时间
   */
  @Column(name = "manager_update_time")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date managerUpdateTime;

  /**
   * 头像
   */
  @Column(name = "manager_head_photo")
  private String managerHeadPhoto;

  /**
   * 管理员状态
   */
  @Column(name = "manager_state")
  private Long managerState;

  /**
   * 令牌
   */
  @Column(name = "manager_token")
  @JsonIgnore
  private String managerToken;

  /**
   * 名店的编号(做联查条件)
   */
  @Column(name = "shop_id")
  private Long shopId;


}
